/*    */ package com.qmsk.business.order.orderDetail.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.Date;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class OrderDetailDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfAll(Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 39 */     return getGsonOfParams("selectSqlOfAll", 
/* 40 */       "selectCountSqlOfAll", "selectJsonOfHead", nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getorderDetailOfMIdList(Long orderMainID, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 54 */     Map params = new HashMap();
/* 55 */     params.put("orderMainID", orderMainID);
/* 56 */     params.put("orderStatus", Integer.valueOf(0));
/* 57 */     params.put("orderEndTime", new Date());
/*    */ 
/* 61 */     return getGsonOfParams("selectSqlOfAll", params, nPageIdx, nPageSize, true);
/*    */   }
/*    */ 
/*    */   public boolean getIsOrderDetail(Long id, Long goodsId) throws SQLException {
/* 65 */     Object[] params = { id, goodsId };
/* 66 */     return queryForBoolean("getIsOrderDetail", params, Boolean.valueOf(false)).booleanValue();
/*    */   }
/*    */ 
/*    */   public Double getMoney(Long id) throws SQLException {
/* 70 */     Object[] params = { id };
/* 71 */     return queryForDouble("getMoney", params, Double.valueOf(0.0D));
/*    */   }
/*    */ 
/*    */   public boolean getDtIdIsDt(Long dtId) throws SQLException {
/* 75 */     Object[] params = { dtId };
/* 76 */     return queryForBoolean("getDtIdIsDt", params, Boolean.valueOf(false)).booleanValue();
/*    */   }
/*    */ 
/*    */   public GsonEbRst getDtCount(Long dtId) throws SQLException {
/* 80 */     Object[] params = { dtId };
/* 81 */     return getGsonOfParams("selectSqlDtCount", params, false);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.order.orderDetail.dao.OrderDetailDao
 * JD-Core Version:    0.5.3
 */